import { createApp } from "vue";
import App from "./Corn.vue";
// import App from "./APP2.vue";
import "./index.scss";

// 1. 引入 { createPinia } from 'pinia'
import { createPinia } from "pinia";

import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
import { directive } from "./directives";


import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
const app = createApp(App);
directive(app);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component)
}
app.use(ElementPlus).use(pinia).mount("#app");
